kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 16:01:16 +0000 (17:01 +0100)]
Upgrade genapic code to 2.6.16-rc6 codebase. Remove entries from
genapic structure that Xen does not require (mostly because we do
not support Visual Workstation nor IBM/Sequent NUMA-Q).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 11:01:32 +0000 (12:01 +0100)]
Fix a protocol violation in the pcnet emulation. Tested on at least
two systems and fixes the 'corrupt MAC' with scp or sftp. See bug 574
for more information.
Signed-off-by: Don Fry <brazilnut@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 20 Mar 2006 11:00:58 +0000 (12:00 +0100)]
Add poll() support to xenbus device file.
From: Gerd Hoffmann
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 20 Mar 2006 08:56:54 +0000 (09:56 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Mon, 20 Mar 2006 08:56:46 +0000 (09:56 +0100)]
Remove unused, broken, redundant and undocumented option xm create -L.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 17:55:46 +0000 (18:55 +0100)]
Fix VMX guest can not be created on PAE xen with more than 4G RAM.
Also change v_end type from unsigned long to unsigned long long, for we
will have PAE VMX guest with more than 4G memory on PAE xen.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 17:52:20 +0000 (18:52 +0100)]
This patch fix HVM/VMX time resolution issue that cause IA32E complain
"loss tick" occationally and APIC time calibration issue.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 16:10:20 +0000 (17:10 +0100)]
Abstract some details of context switching into ctxt_switch_from/to
function hooks. Allows neater separation between paravirtual and
HVM code paths.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 14:17:50 +0000 (15:17 +0100)]
Move arch/x86 to new build system.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 13:02:18 +0000 (14:02 +0100)]
Apply Xen build system changes to all non-arch subdirectories.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 12:13:35 +0000 (13:13 +0100)]
Conditionalize building the Xen ACPI driver.
Also introduces some cleanups to the Xen build system.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:48:51 +0000 (12:48 +0100)]
Fix VMX EFER write logic. Also some cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:41:28 +0000 (12:41 +0100)]
Add back hvm guest apm support and fixed the original apm issues to
make "halt -p" and "shutdown -h now" work. Also added apm 0x05 CPU
idle, 0x08 Enable PM and 0x0f apm engage/disengage subfunctions.
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 16:30:20 +0000 (16:30 +0000)]
linux-x86_64: Sync with native.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
vhanquez@kneesa.uk.xensource.com [Sat, 18 Mar 2006 13:56:34 +0000 (13:56 +0000)]
Fix a race that crash domU by calling xenbus_probe twice if it receive event
between xs_init and setting xenbus_running
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 10:12:45 +0000 (11:12 +0100)]
Move __do_IRQ() definition to ia64 header file where it belongs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 09:59:11 +0000 (10:59 +0100)]
merge with xen-ia64-unstable.hg
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 00:12:26 +0000 (00:12 +0000)]
Update to Linux 2.6.16-rc6.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc5/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc5/net-csum.patch => patches/linux-2.6.16-rc6/net-csum.patch
rename : patches/linux-2.6.16-rc5/pmd-shared.patch => patches/linux-2.6.16-rc6/pmd-shared.patch
rename : patches/linux-2.6.16-rc5/smp-alts.patch => patches/linux-2.6.16-rc6/smp-alts.patch
awilliam@xenbuild.aw [Fri, 17 Mar 2006 22:37:28 +0000 (15:37 -0700)]
merge
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:26:24 +0000 (14:26 -0700)]
[IA64] VT-i Domains should use same hvm builder as VT-x
Signed-off-by: Fred Yang <fred.yang@intel.com>
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:23:43 +0000 (14:23 -0700)]
[IA64] -mconstant-gp gcc/as option added.
Thus gp is not saved/restored before calls, saving memory and bundles.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:21:56 +0000 (14:21 -0700)]
[IA64] zero_page_memmap_ptr removed (was unused).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:06:20 +0000 (14:06 -0700)]
[IA64] fixed a vcpu_translate bug
There are some below code segments in guest OS
1. Rsm psr.dt
...
2. itc.d r18
...
3. rfi
After executing instruction 1, domain is in metaphysical mode.
When executing instruction 2, VMM gets control to emulate this
instruction. Firstly VMM will try to get opcode, which may
trigger a tlb miss. At this time domain is in metaphysical mode
and the fault address is in region 5. vcpu_translate handles this
as normal guest metaphysical mode.
It's not correct; sometimes this will make dom0 hang.
cpu_translate should handle this situation as if
guest is not in metaphysical mode.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:44:48 +0000 (13:44 -0700)]
[IA64] setting rr0 is not correctly emulated
When guest is not at metaphysical mode, VMM should
set machine rr0.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:59 +0000 (13:23 -0700)]
[IA64] Remove "#define page_info page"
This patch removed "#define page_info page" in asm-ia64/config.h.
We tested compilation, booting dom0, and creation/destruction domU.
This patch is "step3" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:01 +0000 (13:23 -0700)]
[IA64] Remove header files where "page" is used
This patch is "step2" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 15:25:04 +0000 (16:25 +0100)]
Fix VMX cpuid handling when EAX == 4.
When eax == 4, ecx should contain cache level.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:45:46 +0000 (11:45 +0100)]
Allows the hypervisor to build without warnings (wisely considered
errors with/-Werror) when perfc_arrays are enabled in xen/Rules.mk.
Signed-off-by: David Lively <dlively@virtualiron.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:44:55 +0000 (11:44 +0100)]
Fix the gzip size extraction in xc_inflate_buffer(). Extract
bytes as unsigned quantities.
Signed-off-by: David Lively <dlively@virtualiron.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:00:46 +0000 (11:00 +0100)]
Fix sched_sedf adjdom to properly clamp the period max value.
Remove temporary debug tracing.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 09:57:28 +0000 (10:57 +0100)]
Declare inline function as 'static inline', not 'extern inline'.
Fixes the ioemu build which was broken on some systems.
Signed-off-by: Keir Fraser <keir@xensource.com>
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 10:03:37 +0000 (10:03 +0000)]
Reinitialize producer and consumer index to 0 if indexes corruption are detected
in XenBus.
Prevent a kernel infinite loop and add more recovering ability.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 09:52:05 +0000 (09:52 +0000)]
Substitute kmalloc+memset by kzalloc where possible
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:22:37 +0000 (12:22 -0700)]
[IA64] disable handling of legacy privified insns
Disable handling of privified insns into another instructions.
This is controled by a static constant.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:20:59 +0000 (12:20 -0700)]
[IA64] remaining privified insns removed
Privified insns replaced by hyperprivops.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:19:08 +0000 (12:19 -0700)]
[IA64] new hyperprivop
Missing hyperprivop added.
These were privified insn without hyperprivop.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:13:23 +0000 (12:13 -0700)]
[IA64] postat tool
Small utility to display and clear privop statistics.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:10:22 +0000 (12:10 -0700)]
[IA64] Changed from page to page_info
This patch changed from "struct page" to "struct page_info" in the below files.
- xen/arch/ia64/xen/domain.c
- xen/arch/ia64/xen/mm_init.c
- xen/arch/ia64/xen/xenmem.c
- xen/arch/ia64/xen/xenmisc.c
- xen/include/asm-ia64/config.h
- xen/include/asm-ia64/mm.h
This patch is "step1" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:06:48 +0000 (12:06 -0700)]
[IA64] use of max_addr= & command line
Use 'max_addr' option to limit the amount of physical memory. The
default is 4G (the same as the previous hard limit). The hard-coded
limit is removed. dom0_command_line now contains the cmdline for
dom0 linux. saved_command_line now contains the cmdline for Xen (it
is used in Xen).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:02:39 +0000 (12:02 -0700)]
[IA64] fix AFLAGS in Rules.mk
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 18:36:28 +0000 (19:36 +0100)]
Clean up HVM relinquish_guest_resources interface and implementation.
Ensure we only unmap the shared I/O page after killing all timers
whose handlers may reference that page.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:57:54 +0000 (18:57 +0100)]
Add Summagraphics Tablet emulation for VNC users. The current PS/2 emulation
is unusable under VNC since a PS/2 mouse provides deltas while VNC only
provides absolute coordinates. Fortunately, the Summagraphics Tablet provides
absolute coordinates and works perfectly with VNC.
Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:43:07 +0000 (18:43 +0100)]
Change the VNC main input loop delay from 1 second down to 10
msec. The 1 second delay was causing significant latency problems
with the mouse while there is no measurable overhead in lowering the
delay down to 10 msec.
Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:41:01 +0000 (18:41 +0100)]
Add a shadow VRAM to track changes to the real VRAM. When the guest
OS was given write access to the VRAM the device model tracked all
VRAM changes by updating the entire screen on every output loop,
causing significant overhead (a CPU bound loop in a guest slows down
by about 35%) and significant mouse latency (VNC uses the same data
path for mouse events and video updates). With the shadow VRAM only
modified pages need to be updated and the comparison of the shadow
VRAM to the real VRAM only adds ~4% overhead while eliminating the
mouse latencies.
Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 11:34:27 +0000 (12:34 +0100)]
Explicitly include time.h to get gettimeofday declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 11:31:16 +0000 (12:31 +0100)]
pcifront poll loop now checks gettimeofday rather than jiffies,
as the latter does not increase while interrupts are disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 19:25:50 +0000 (20:25 +0100)]
Implement console for Mini-os and also fix 2 bugs:
a) in initialising new page table frames
b) in initialising idle thread.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 19:22:31 +0000 (20:22 +0100)]
Make asm macros use the generally accepted comma-separated arg-passing style.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 18:19:22 +0000 (19:19 +0100)]
Update interface documentation to include sched_op_new hypercall
and clean up the style a bit. Also clean up the sched_op_new
description in the sched.h public header.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:33:23 +0000 (08:33 -0700)]
[IA64] cleanup in dom_fw.c
Unused code removed.
A few 'static' added.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:28:23 +0000 (08:28 -0700)]
[IA64] LID virtualization
Virtualize lid for domU.
LSAPIC table cleaned for SMP-g.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:22:03 +0000 (08:22 -0700)]
[IA64] dummy IO memmap entry
Create a dummy IO ports memmap entry for domU, so that
IO accesses are trapped by Xen. Otherwise, they could
pollute memory.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:20:28 +0000 (08:20 -0700)]
[IA64] remove warning of xen_init()
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 12:35:43 +0000 (13:35 +0100)]
Remove unnecessary cr4 handling in vmx_set_cr0.
1) on x86_32, PAE should never be enabled in guest cr4, since we only
support pure IA32 VMX guest.
2) on x86_32p or x86_64, PAE should always be enabled in guest cr4,
since even pure IA32 guest uses PAE paging mode actually.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:24:59 +0000 (12:24 +0000)]
merge
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:24:34 +0000 (12:24 +0000)]
fix buffer overflow in print XS_DEBUG command
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:08:10 +0000 (12:08 +0000)]
move XS_DEBUG code into a proper function
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:52:33 +0000 (12:52 +0100)]
Make MTU rx check in netfront more permissive to allow for 8021q vlan tagging.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:41:58 +0000 (12:41 +0100)]
Remove unused macro VMX_CPU_STATE_PG_ENABLED.
Use vmx_paging_enabled() instead.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:40:42 +0000 (12:40 +0100)]
Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 11:09:45 +0000 (11:09 +0000)]
Do not BUG when receiving unexpected message type from xenbus
print a warning and discard the query
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
Ian.Campbell@xensource.com [Wed, 15 Mar 2006 10:33:43 +0000 (10:33 +0000)]
There is no need to pin page tables when XENFEAT_writable_page_tables
is enabled.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 10:09:20 +0000 (11:09 +0100)]
Fix x86/64 HVM assertion failure.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 10:07:26 +0000 (11:07 +0100)]
I've found it useful to display the panic message *before* dropping into the
debugger. Once there it may be very difficult to find the original message,
and often a debugger isn't even needed if you can see what panicked.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 10:06:45 +0000 (11:06 +0100)]
Unlike x86 and apparently ia64, PowerPC delivers timer interrupts as a
different exception than device interrupts. For PowerPC Xen, we emulate this
exception rather than delivering timer events as virtual IRQs. This patch
introduces no functional changes for x86 and ia64, but is a required change
for xen/arch/ppc.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 09:32:34 +0000 (10:32 +0100)]
Add extra tracing near a commonly-failing scheduler assertion.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Tue, 14 Mar 2006 21:38:22 +0000 (14:38 -0700)]
[IA64] warning cleanup
cleanup a few trivial warnings.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Tue, 14 Mar 2006 20:50:35 +0000 (13:50 -0700)]
merge
awilliam@xenbuild.aw [Tue, 14 Mar 2006 20:10:21 +0000 (13:10 -0700)]
[IA64] Turn off pending guest timer printk
Per discussion in January, this printk can be turned off as it
is just indicating that a condition occurred which Kevin fixed.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-01/msg00117.html
The similar "Oops: timer tick before it's due" from Linux
is probably related but not understood or fixed.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
awilliam@xenbuild.aw [Tue, 14 Mar 2006 19:38:49 +0000 (12:38 -0700)]
[IA64] Fixed PGT and PGC flags
This patch fixed PGT and PGC flags in include/asm-ia64/mm.h.
It's same as x86_64.
Please see the below.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00229.html
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00235.html
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 14 Mar 2006 19:27:57 +0000 (12:27 -0700)]
[IA64] Remove the last compile warnings
This patch intends to remove the last warnings when compile
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 18:33:45 +0000 (19:33 +0100)]
Define a new sched_op hypercall called sched_op_new, which differs from the
legacy hypercall in that it takes a pointer to a block of extra arguments
rather than an opaque unsigned long. The old hypercall still exists, for
backwards compatibility.
The new hypercall supports new sub-command SCHEDOP_poll, which can be used to
wait on a set of event-channel ports with an optional timeout. This is exported
in XenLinux as HYPERVISOR_poll, and used in the pcifront driver to wait on a
response from the pciback driver.
Can also be used for debuggers. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: John Levon <john.levon@sun.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 16:35:38 +0000 (17:35 +0100)]
Add a read barrier to the time-values-uptodate xenlinux time checking function.
Also fix monotonic clock to use just a compile barrier instead of smp_rmb.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 15:09:34 +0000 (16:09 +0100)]
Fix ASSERT failure caused by NX support code on x86_64
When turning on debug for x86_64, ASSERT(gpfn =3D=3D (gpfn & =
PGT_mfn_mask))
in __shadow_status will fail, this patch makes the NX support code
comply with this ASSERT.
NB: NX on PAE xen is not supported yet.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 15:00:16 +0000 (16:00 +0100)]
When both stolen and blocked are rounded down, it is possible for the
final increment of the cpu local processed_system_time to move the cpu
local system time ahead a bit further than expected - but still proper
wrt. wall clock time.
This gives problems on a next timer interrupt, when stolen and blocked
both get rounded up and end up incrementing the per cpu
processed_system_time too far.
These simple checks make sure that the cpu local processed_system_time
never gets advanced too far. Not advancing the variable now should be
fine, since we'll increment it at the next timer tick...
This patch has made the "time went backwards" error messages go away
completely.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:45:00 +0000 (15:45 +0100)]
Xen/ia64 build fixes.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:44:04 +0000 (15:44 +0100)]
Trivial ia64 tools build fix.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:43:10 +0000 (15:43 +0100)]
Fix a bug which occurs when Xen is compiled with debug=y. Destroying a
32-bit HVM guest on x86/64 will cause a Xen hang.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:40:44 +0000 (15:40 +0100)]
Fix the bug that hvm domain network breaks after xm reboot. Root
cause: qemu network related info is not saved in xenstore, so after
reboot, this information is missing, and qemu can not start network.
Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:36:40 +0000 (15:36 +0100)]
Fix build error with -Wstrict-prototype.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:33:57 +0000 (15:33 +0100)]
Fix memory leak in xc_domain_dumpcore and simplify copy_from_domain_page.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:26:54 +0000 (15:26 +0100)]
Fix a typo in a comment -- vmxloader is now hvmloader.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:25:33 +0000 (15:25 +0100)]
Fix PAE ptep_get_and_clear_full(). The fast path requires us to manually clear
the low half before the high half. Otherwise the compiler may reorder the writes
and validation in Xen will fail.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:18:35 +0000 (15:18 +0100)]
Initialise blkfront_info to zeroes after allocating it.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 12:01:43 +0000 (13:01 +0100)]
Revert some of the bigger changes in c/s 9217 as these have been
causing problems for a few people:
1. HVM guests can now have page directories with unknown
back pointers (I think this is the cause of problems that
Jun Nakajima was seeing).
2. L1 pagetable pinning requests are no longer ignored (may
be the cause of problems Joe Bonasera was seeing).
3. The PGT_va_mutable flag has been reintroduced, but for
L1 pagetables only.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 14:06:58 +0000 (15:06 +0100)]
Clean up block-device hotplug routines in xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 12:03:51 +0000 (13:03 +0100)]
Add a 't' debug key to Xen for displaying info about cross-cpu clock jitter.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 12:03:18 +0000 (13:03 +0100)]
Make time-backwarsd warning a run-time configurable option.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 10:47:56 +0000 (11:47 +0100)]
The existing xc_domain_dumpcore is very specific to disk/file based
output. Refactor the code slightly to allow more user-specified
control. This is done by adding a parallel
xc_domain_dumpcore_via_callback, which allows the specification of a
callback routine and an opaque argument block. The existing dumpcore
routine is modified to use the callback for all write operations and
to turn the single seek into a small write (it's for page alignment).
Signed-off-by: Ben Thomas <bthomas@virtualiron.com>
emellor@leeni.uk.xensource.com [Mon, 13 Mar 2006 10:10:27 +0000 (11:10 +0100)]
xm top was listed twice in the help message -- remove it from the Host Commands
section, leaving it in the Domain Commands section.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 09:49:45 +0000 (10:49 +0100)]
Fix broken assertion in SEDF scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 18:37:38 +0000 (19:37 +0100)]
No need to pin/unpin intermediate pagetables in x86/64 xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 18:37:00 +0000 (19:37 +0100)]
Ignore pinning of other than root page directories. Disallow
creation of pagetables with 'va_unknown' page-directory backptrs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 09:03:33 +0000 (10:03 +0100)]
Add missing include of a header file to avoid a compile warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 08:52:19 +0000 (09:52 +0100)]
pciback sends evtchn notification to pcifront when its request is processed.
This may in future allow pcifront to avoid spin-waiting.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 14:40:33 +0000 (15:40 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 14:40:26 +0000 (15:40 +0100)]
Remove blank line -- this was causing all the tests to be run twice, because
the blank line is interpreted as running make check in tests/.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 10:53:22 +0000 (11:53 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 10:52:40 +0000 (11:52 +0100)]
Define TESTS to be the .test files, not the .py files, otherwise the chmod +x
doesn't get called.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
root@dyn9047022116.beaverton.ibm.com [Sat, 11 Mar 2006 10:46:38 +0000 (11:46 +0100)]
HG Patch
Add feature to layer xm-test tests, grouping of tests by casename and
execution of tests by user specified lists.
Signed-off-by: Woody Marvel <marvel@us.ibm.com>